package com.gitee.deeround.javaprotect.agent;

import java.lang.instrument.Instrumentation;

/**
 * @author wanghao 913351190@qq.com
 * @create 2023/11/7 22:18
 */
public class A {
    public static void premain(String args, Instrumentation inst) {
        try {
            P p = new P(args);
            IE e = new E(p);
            inst.addTransformer(new T(e), true);
            System.out.println("===========YKT PROTECT START===========");
        } catch (Throwable e) {
            System.out.println(e.getMessage());
            System.out.println("===========YKT PROTECT ERROR===========");
        }
    }
}
